package com.huike;

import com.huike.clues.service.ITbActivityService;
import com.huike.clues.service.impl.SysDictTypeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableScheduling
public class HuiKeApplication {

    @Autowired
    private ITbActivityService activityService;

    public static void main(String[] args) {
        SpringApplication.run(HuiKeApplication.class, args);
    }

//    @Override
//    public void run(String... args)  {
//        try{
//            //加载所有活动code到缓存
//            activityService.loadAllActivityCode();
//        }catch (Exception ex){
//            ex.printStackTrace();
//        }
//    }
}

